var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0}), (o.scores = void 0);
var n = t("ConfS"),
    r = t("Platforms"),
    a = (function () {
        function t() {}
        return (
            (t.prototype.init = function () {
                -1 == r.default.userStorage.score && (r.default.userStorage.score = n.DatasManager.总分),
                    this.add("启动游戏得分", n.DatasManager.启动游戏得分),
                    this.一分钟后减分();
            }),
            (t.prototype.一分钟后减分 = function () {
                var t = this;
                r.default.delays.delay({
                    time: 60,
                    action: function () {
                        t.add("每分钟减分", -n.DatasManager.每分钟减分), t.一分钟后减分();
                    }
                });
            }),
            (t.prototype.add = function (t, e) {
                (r.default.userStorage.score += e),
                    r.default.userStorage.score > n.DatasManager.总分 ||
                        (r.default.userStorage.score < 0 && (r.default.userStorage.score = 0));
            }),
            (t.prototype.level = function () {
                return r.default.userStorage.score >= n.DatasManager.优质用户
                    ? "优质用户"
                    : r.default.userStorage.score >= n.DatasManager.普通用户
                    ? "普通用户"
                    : "劣质用户";
            }),
            t
        );
    })();
o.scores = new a();
